package org.z23.mcpserver.Service;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Service;

@Service
public class WeatherService {
    @Tool(description = "根据城市名获取天气信息")
    public String getWeather(String cityName) {
        System.out.println("开始获取天气信息");
        return cityName+ "的天气是18℃-25℃ 小雨。";
    }

    @Tool(description = "根据天气信息获取穿衣建议")
    public String getDressingAdvice(String weatherInfo) {
        System.out.println("模拟根据天气信息获取穿衣建议");
        return "薄外套 + 防水鞋";
    }
}
